package org.dromara.business.modules.message.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.modules.message.domain.BuMessage;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 消息通知业务对象 bu_message
 *
 * @author ckk
 * @date 2025-10-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BuMessage.class, reverseConvertGenerate = false)
public class BuMessageBo extends BaseEntity {

    /**
     * 消息ID
     */
    @NotNull(message = "消息ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 接收者用户ID
     */
    private Long receiverId;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 是否已读：0-未读，1-已读
     */
    private Integer isRead;

    /**
     * 接收者是否删除：0-未删除，1-已删除
     */
    private Integer isDeleted;

    /**
     * 发送时间
     */
    private Date sendTime;

    /**
     * 阅读时间
     */
    private Date readTime;

    /**
     * 业务标识（service-服务，demand-需求）
     */
    private String businessSign;

    /**
     * 业务Id
     */
    private String businessId;


}
